//
//  CourseStudyModel.swift
//  Auscultation
//
//  Created by zwb on 2021/3/26.
//

import Foundation
import HandyJSON

struct CourseStudyModel:HandyJSON {
    var id = ""
    var presentation = ""
    //学习状态：0：禁止学习；10：开始学习；20：学习完成
    var status = ""
    var stuRate:CGFloat = 0
    // 考试状态：0：禁止考试；10：允许考试
    var examStatus: String = "0"
    var title = ""
    var type = ""
    var time = ""
    var filePath = ""
    var eduNum = 0
    
    var typeString:String?{
        get{
            if self.type == "1" {
                return "心脏"
            }else{
                return "心脏"
            }
        }
    }

}

struct HomeCourseModel:HandyJSON {
    var id = ""
    var presentation = ""
    var filePath = ""
    var title = ""
    //分类 10：视频；20：文档
    var type = ""
    var image = ""
    var duration = ""
    var typeString:String?{
        get{
            if self.type == "10" {
                return "视频"
            }else{
                return "文档"
            }
        }
    }

}
